package io.terminus.spzx.model.entity.product;

import io.swagger.v3.oas.annotations.media.Schema;
import io.terminus.spzx.model.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 商品SKU管理Entity实体类
 * @Date 2024-03-10
 */
@Data
@Schema(description = "商品SKU实体类")
@EqualsAndHashCode(callSuper = true)
public class ProductSku extends BaseEntity {

    /**
     * @see Product
     */
    @Schema(description = "商品ID")
    private Long productId;

    @Schema(description = "商品编号")
    private String skuCode;

    @Schema(description = "sku名称")
    private String skuName;

    @Schema(description = "缩略图路径")
    private String thumbImg;

    @Schema(description = "售价")
    private BigDecimal salePrice;

    @Schema(description = "市场价")
    private BigDecimal marketPrice;

    @Schema(description = "成本价")
    private BigDecimal costPrice;

    @Schema(description = "库存数")
    private Integer stockNum;

    @Schema(description = "销量")
    private Integer saleNum;

    @Schema(description = "sku规格信息json")
    private String skuSpec;

    @Schema(description = "重量")
    private String weight;

    @Schema(description = "体积")
    private String volume;

    @Schema(description = "线上状态：0-初始值，1-上架，-1-自主下架")
    private Integer status;

}